package com.gzc.just.play.last.war.common.share.communication;

/**
 * Message object
 */
public class Message {
    
    /**
     * Message ID
     */
    public String id;
    
    /**
     * Message type
     */
    public String type;
    
    /**
     * Source service
     */
    public String sourceService;
    
    /**
     * Target service
     */
    public String targetService;
    
    /**
     * Message payload
     */
    public Object payload;
    
    /**
     * Timestamp
     */
    public long timestamp;
    
    /**
     * Whether it's a request message
     */
    public boolean request = false;
    
    /**
     * Response message ID (if it's a response message)
     */
    public String responseTo;
    
    /**
     * Message metadata
     */
    public java.util.Map<String, Object> metadata;
}